package com.minsf.rpc.serializer;

import java.io.IOException;

/**
 * @Description
 * @Author minify
 * @Date 2024/3/24 15:22
 * @Project sf-rpc
 */
public interface Serializer {

    <T> byte[] serialize(T object) throws IOException;

    <T> T deserialize(byte[] bytes, Class<T> type) throws IOException;
}
